<?php
// +----------------------------------------------------------------------
// | Class  数据库配置 - 支持多数据库连接
// +----------------------------------------------------------------------
// | Copyright (c) 2022
// +----------------------------------------------------------------------

return array(
    'mysql1'=>array(
        'db_type' => 'mysql',       // 【数据库类型】可不设置默认为mysql
        'db_link' => 'mysqli',      // 【链接类型】可不设置默认为mysqli
        'db_host' => '127.0.0.1',   // 【链接地址】建议设置不设置默认为localhost
        'db_port' => 3306,          // 【端口号】可不设置默认为3306
        'db_name' => 'world',       // 【数据库名】必须配置
        'db_user' => 'root',        // 【用户名】建议设置不设置时默认root
        'db_pwd' => '123456',       // 【密码】建议设置不设置时默认为空无密码
        'db_fix' => '',         // 【表前缀】建议设置不设置时默认为空无表前缀
        'db_char' => 'utf8',        // 【编码】可不设置默认为utf8
    ),
    'mysql2'=>array(
        'db_type' => 'mysql',
        'db_link' => 'pdo',
        'db_host' => '127.0.0.1',
        'db_port' => 3306,
        'db_name' => 'world',
        'db_user' => 'root',
        'db_pwd' => '123456',
        'db_fix' => '',
        'db_char' => 'utf8',
    ),
    /*'oracle'=>array(
        'db_type' => 'oracle',
        'db_link' => 'oci',
        'db_host' => '***.***.***.***',
        'db_port' => 1521,
        'db_name' => 'orcl',
        'db_user' => '***',
        'db_pwd' => '***',
        'db_fix' => '',
        'db_char' => 'utf8',
    ),*/
);
